|
GHOST MATRIX ON
This command will ghost a matrix.
GHOST MATRIX ON Matrix Number
GHOST MATRIX ON Matrix Number, Mode
Matrix Number
Integer
The matrix number
Mode
Integer
This value is an integer number such as 1.
This command does not return a value.
Ghosted matrices will appear transparent when rendered, creating effects such as a see-through surfaces. A ghosted matrix automatically switches to a higher level of priority when rendered in order to ensure objects above and below the matrix are visible. The Ghost Mode with a range of 0 to 5 specify the type of ghosting to perform. Be aware that ghosted matrices cannot be seen in a reflection created by the SET REFLECTION SHADING ON command.
ink rgb(255,255,255),0
box 1,1,101,101
get image 1,0,0,101,101
position camera 0,300,0
autocam off
make matrix 1,1000,1000,25,25
prepare matrix texture 1,1,1,1
position matrix 1,0,0,0
randomize matrix 1,rnd(100)
update matrix 1
while inkey$()<>"x"
set cursor 0,0
print "press 1 to ghost matrix on"
if scancode()=2 then ghost matrix on 1
print "press 2 to ghost matrix off"
if scancode()=3 then ghost matrix off 1
x#=x#+mousemovey()
y#=y#+mousemovex()
rotate camera x#,y#,0
update matrix 1
endwhile
if matrix exist(1)=1 then delete matrix 1
end
MATRIX Commands Menu
Index
|